Delayed write-back in memory

ABSTRACT

A memory having a delayed write-back to the array of data corresponding to a previously opened page allows delays associated with write-back operations to be avoided. After an initial activation opens a first page and the read/write operations for that page are complete, write-back of the open page to the array of memory cells is delayed until after completion of a subsequent activate operation that opens a new page. Techniques to force a write-back in the absence of another activate operation are also disclosed.

TECHNICAL FIELD

The disclosure herein relates generally to memory devices having adelayed write-back to the array, and, more particularly, to circuits andmethods for supporting such delayed write-back operations in memorydevices.

BACKGROUND

Spin-torque magnetic memory devices store information by controlling theresistance across a magnetic tunnel junction (MTJ) such that a readcurrent through the magnetic tunnel junction results in a voltage drophaving a magnitude that is based on the state of the magnetoresistivestack. The resistance in each magnetic tunnel junction can be variedbased on the relative magnetic states of the magnetoresistive layerswithin the magnetoresistive stack. In such memory devices, there istypically a portion of magnetoresistive stack that has a fixed magneticstate and another portion that has a free magnetic state that iscontrolled to be either of two possible states relative to the portionhaving the fixed magnetic state. Because the resistance through themagnetic tunnel junction changes based on the orientation of the freeportion relative to the fixed portion, information can be stored bysetting the orientation of the free portion. The information is laterretrieved by sensing the orientation of the free portion. Such magneticmemory devices are well known in the art.

Some magnetoresistive memory devices such as magnetic random accessmemory (MRAM) support access protocols that are also used by othermemory devices. For example, dynamic random access memory (DRAM) devicesthat use the synchronous double data rate protocol (e.g. DDR SDRAM, DDR2SDRAM, DDR3 SDRAM, DDR4 SDRAM, etc.) are well known in the art. SomeMRAM devices support such protocols, where the same operation codes forDDR SDRAM devices result in the same or similar operations in MRAMdevices.

BRIEF DESCRIPTION OF THE DRAWINGS

FIGS. 1 and 2 are block diagrams showing relative timing of variousaspects of data access operations in a prior art memory device;

FIG. 3 is a block diagram showing relative timing of various aspects ofdata access operations in a memory device in accordance with anexemplary embodiment;

FIG. 4 is a schematic diagram of a portion of a magnetic memory devicein accordance with an exemplary embodiment;

FIGS. 5-7 are flow charts corresponding to methods for performing andsupporting delayed write-back in a magnetic memory in accordance withexemplary embodiments; and

FIG. 8 is a schematic diagram of a portion of a magnetic memory devicewith an associated timing diagram in accordance with another exemplaryembodiment.

DETAILED DESCRIPTION

The following detailed description is merely illustrative in nature andis not intended to limit the embodiments of the subject matter or theapplication and uses of such embodiments. Any implementation describedherein as exemplary is not necessarily to be construed as preferred oradvantageous over other implementations.

For simplicity and clarity of illustration, the figures depict thegeneral structure and/or manner of construction of the variousembodiments. Descriptions and details of well-known features andtechniques may be omitted to avoid unnecessarily obscuring otherfeatures. Elements in the figures are not necessarily drawn to scale:the dimensions of some features may be exaggerated relative to otherelements to assist improve understanding of the example embodiments.

The terms “comprise,” “include,” “have” and any variations thereof areused synonymously to denote non-exclusive inclusion. The term“exemplary” is used in the sense of “example,” rather than “ideal.”

In the interest of conciseness, conventional techniques, structures, andprinciples known by those skilled in the art may not be describedherein, including, for example, standard magnetic random access memory(MRAM) process techniques, generation of bias voltages, fundamentalprinciples of magnetism, and basic operational principles of memorydevices.

During the course of this description, like numbers may be used toidentify like elements according to the different figures thatillustrate the various exemplary embodiments.

For the sake of brevity, conventional techniques related to reading andwriting memory, and other functional aspects of certain systems andsubsystems (and the individual operating components thereof) may not bedescribed in detail herein. Furthermore, the connecting lines shown inthe various figures contained herein are intended to represent exemplaryfunctional relationships and/or physical couplings between the variouselements. It should be noted that many alternative or additionalfunctional relationships or physical connections may be present in anembodiment of the subject matter.

Magnetic memory devices and other memory devices often include an arrayof memory cells divided into a plurality of banks or subarrays. In suchmemory devices, each bank can be accessed separately such that accessesbetween banks can be interleaved to optimize data throughput. Somemagnetic memory devices support DDR memory protocols, where an activateoperation opens a page of memory cells in a particular bank. A “page” ofmemory cells is understood to be a grouping of memory cells that areaccessed together as a unit. In some instances, a “page” may constitutea “row” of memory cells. Opening a page moves the data for the page fromthe array of memory cells into a cache or other form of temporarystorage where the data is more readily accessed. Once the page isactivated (opened), read and write operations to the page can beperformed. Upon completion of the read/write operations for the openpage, the page is closed. When a page is closed, the array is returnedto a state ready for a subsequent page activation, and the data in theclosed page cannot be accessed again for reads and writes withoutre-opening the page. In some memory devices, data moved to temporarystorage during the activate command is immediately written back to thearray, and, in some cases, data corresponding to write operationsperformed while the page is opened is also immediately written to thememory cells in the array. In such memory devices, a precharge operationmay only precharge the bit lines and de-assert the word linecorresponding to the page. In other memory devices, data moved totemporary storage during an activate and data written to the open pageis not stored into the array until just prior to closing the page. Assuch, in those memory devices, the precharge operation would alsoincluding performing the write-back of data from temporary storage tothe array. By waiting until just prior to closing the page to write thedata back to the array, a memory device can save power or improve timingspecifications associated with the moving or modifying of the data.

Having multiple banks allows for multiple pages to be open, therebyenabling interleaving of accesses. This is because each bank has acorresponding cache or its own temporary storage that allows forseparate reading and writing. FIG. 1 shows the interleaving of aplurality of memory reads corresponding to three different pages inthree different banks. Each block represents the time consumed by theparticular operation with respect to the other ongoing operations. Thetop row of blocks represents a read access to BANK1 PAGE1. At 110, theactivate operation for BANK1 is occurring. During the activateoperation, data corresponding to PAGE1 is retrieved from the portion ofthe array corresponding to BANK1 and stored in a cache for read/writeaccess. As discussed in more detail below, the activate operation can bevery time consuming, especially in magnetoresistive memory devices thatuse a self-referenced read operation to sense the data stored in thearray.

After activation, a read request requires a read access time to fetchthe particular data to be output. This corresponds to block 111, whichis labeled CL for “CAS latency.” CAS latency is a term commonly used torepresent the time between receipt of a read request and the output ofdata corresponding to the read request. That time corresponds to theselection of the particular data in the open page and routing of thatdata to the outputs of the memory device. Read data is output duringblock 112. Notably, only a single read access for BANK1 PAGE1 is shown,but it is understood that many read and write accesses can occur whilethe page is open. In the prior art memory devices related to FIGS. 1 and2, when all the accesses to the page are complete, a precharge commandcauses the page to be closed and data in the cache to be written back tothe array at block 113. Such a write-back operation to the array canalso be very time consuming relative to the time required to performread and write operations while the data is in the cache.

As shown in FIG. 1, in order to “hide” some of the delay associated withthe various operations, multiple pages can be opened in multiple banks.This allows the various signal lines used to convey commands, addresses,and data to and from the memory device to be used most efficiently. Forexample, once the activate command for BANK1 has been received by thememory, a second activate command corresponding to BANK2 can be sent.Because BANK2 has its own cache, activation of a separate page in BANK2allows PAGE1 of BANK1 to be open at the same time as PAGE1 of BANK2. Thesecond row of blocks in FIG. 1 shows that the time for activation ofBANK2 PAGE1 at block 120 overlaps with portions 110-112 of theactivation and read in BANK1. The read operation in BANK2 is similar tothat in BANK1 in terms of timing, and is shown to include read accesstime 121, read data output 122, and precharge block 123. The third rowof FIG. 1 shows similar operations 130-133 for BANK3.

As shown in FIG. 1, because the sequential accesses are in differentbanks (e.g. first a read from BANK1, then BANK2, and then BANK3),interleaving of the accesses allows read data can be output by thememory device relatively constantly. The read data 112 for BANK1 isimmediately followed by the read data 122 for BANK2, which in turn isfollowed by the read data 132 for BANK3. Because the interleavingbetween banks allows delays associated with activation, read accesstime, and precharging to be hidden at least to some degree, highthroughput can be achieved.

However, as shown in FIG. 2, in some instances sequential accesses maybe to a different page in the same bank. In the example shown, BANK1PAGE1 is activated at block 210, and after read access time 211, readdata 212 is output. If the next access is a read to BANK1 PAGE2, thenPAGE1 of BANK1 must be closed via precharge 213 before PAGE2 of BANK1can be opened via activate 220. Following the activate 220, read data222 is not output until after read access time 221. Precharge 223 thencloses PAGE2 of BANK1. As is apparent from FIG. 2, such back-to-backaccesses to the same bank do not allow the time associated with theactivate, read access time, and the precharge to be fully hidden. It maybe possible to begin the precharge operation as the last of the readdata is output (i.e. slightly before the completion of the read datablock 212), but, as is shown, the time delay between read data output212 from the first page and the read data output 222 from the secondpage is significant.

In current dynamic random access memories (DRAM), the timing associatedwith activate and precharge operations is not much greater than that ofother aspects of the data access cycle, and therefore the delay of aback-to-back operation such as that illustrated in FIG. 2 may betolerable. However, in MRAMs, activate and write-back operations oftentake much longer, thereby resulting in a greater undesirable delaybetween data accesses for such same-bank sequential accesses.

In some MRAMs, a self-referenced read operation is used to sense thedata stored in the array for a page to be accessed. In an exampleself-referenced read, the initial resistance through each of the memorycells in the page is sensed, then all of the memory cells in the pageare written to a known state, and finally, the post-writing resistancethrough each of the cells is sensed again and compared with the initialresistance sensed before writing. Whether or not the resistance is thesame after writing to the known state indicates the initial state of thememory cell. Notably, the self-referenced read is destructive, andleaves all of the memory cells in the known state written between thetwo sensing operations. Such a self-referenced read operation oftentakes a significant amount of time relative to other aspects of memoryaccesses. For example, activating a page in an MRAM may require ofhundreds of nanoseconds, whereas a read operation to an open page may beon the order of tens of nanoseconds.

Similarly, the time required to write-back a page of data to the arrayupon completion of read/write accesses can be significant. For example,in order to extend the life of the MRAM device, large magnitude writecurrent pulses that can quickly change the state of the free layer in aspin-torque memory cell are typically avoided as such large pulses candamage the sensitive layer in the magnetoresistive stack. In order toavoid breakdown of the layers, write pulses of a lower magnitude andlonger duration are often employed as they enable the free layer to beswitched with less adverse effects on the device layers. While promotinglonger life for the memory devices, such long-duration write pulsesextend the time needed for write-back operations.

Embodiments disclosed herein utilize a delayed write-back of closed-pagedata to help improve overall throughput in magnetoresistive memorydevices. This is accomplished by delaying the write-back of the datacorresponding to a page that is being closed until a time at which theperformance of the write-back does not adversely affect the timing ofother ongoing operations associated with reads and writes. As disclosedherein, in some embodiments the write-back corresponding to a previouslyopen page is performed following the activate operation for the nextpage to be accessed.

FIG. 3 aids in illustrating the delayed write-back concept. As shown inFIG. 3, at block 320 an activate for BANK1 PAGE2 occurs. Following theread access time 321, read data 322 is output. Once the activateoperation corresponding to BANK1 PAGE2 is complete and the PAGE2 datahas been transferred from the array to the cache used for read and writeoperations, BANK1 in the array is no longer active. As such, thewrite-back operation corresponding to the previously opened bank can beperformed during the time read and write operations for the newlyactivated bank occur. As shown in FIG. 3, the write-back operation forBANK1 PAGE1 at block 313 occurs once the activate operation 320 forBANK1 PAGE2 has completed.

As discussed above, write-back operations for a bank that is beingclosed typically occur as soon as the read and write accesses to thatbank are complete, and such a write-back operation is typically promptedby a precharge command received by the memory device. As discussedherein, rather than performing the write-back immediately uponcompletion of the read and write accesses, thereby preventing asubsequent activate operation from fetching data from the array untilafter that write-back operation is complete, embodiments disclosedherein delay that write-back operation until a time at which thewrite-back can be hidden and not impact timing of the subsequentactivate operation. Because the write-back for the previously open pageis writing data corresponding to a closed page to the array, no adversedelays are caused by shifting the write-back operation such that itoccurs after the next page has been opened. In other words, there is norush to put the data back into the array as another, different page iscurrently being accessed.

As illustrated in FIG. 3, by delaying the write-back corresponding tothe previously open page within a bank until after the next activateoperation for that bank is complete, the precharge time associated withthat bank can be hidden, thereby greatly improving the latency andthroughput characteristics for the memory device. In FIG. 3, the initialstate of the memory device corresponds to a point in time where BANK1PAGE1 was previously opened, but the read and write operationscorresponding to that page have been completed, and the PAGE1 data isready to write back to the array. With PAGE1 data ready to write-back,the activate command corresponding to BANK1 PAGE2 is received, therebyindicating that PAGE2 is to be opened for read and write accesses.Instead of completing that write-back operation for PAGE1 prior toactivation of PAGE2, PAGE2 is opened first, and, once that activation iscomplete, the write-back operation for PAGE1 can occur without delayingany of the operations associated with activating PAGE2 or accessing datain newly-open PAGE2 (e.g. read access time 321 and read data 322).

Following accesses to BANK1 PAGE2, the activate operation for PAGE3 ofBANK1 occurs at block 330. Immediately upon completion of the activatefor PAGE3, the write-back for BANK1 PAGE2 can occur at block 323 whilethe read access time 331 and read data 332 for PAGE3 are simultaneouslyoccurring. Similarly, the write-back for PAGE3 begins once the activatefor BANK1 PAGE4 completes at block 340. Notably, the write-backoperation for the previously open page can occur as soon as all of theportions of the next activate command that would prevent the write-backfrom occurring are complete. For example, while some portions of thewrite-back and activate utilize the same circuitry on the memory device(e.g. write drivers, column decoders, etc.), other portions may useindependent circuitry such that some aspects of the activate operationare not complete when the write-back operation begins.

Embodiments described herein use the time after an activate operation,when reads and writes to the newly opened page are occurring, towrite-back the data corresponding to the previously open page to thearray. In order to accomplish this, the data corresponding to thepreviously open page must be stored in a location that will notinterfere with the activation of the new page to be accessed. In someembodiments, each bank of the memory device includes two cachestructures, where a first cache serves as the primary, or active cachefor read/write operations to the open page and a second cache serves asa temporary storage location for data corresponding to the page forwhich accesses are complete but write-back has not yet occurred.

Turning to FIG. 4, a schematic diagram of a portion of a memory device400 in accordance with various embodiments is presented. Memory device400 includes an array 405 of memory cells. In some embodiments, thememory cells are non-volatile spin-torque MRAM cells, whereas in otherembodiments, the memory cells are other types of memory cells such as,for example, DRAM cells or other resistive memory cells. As shown inFIG. 4, array 405 includes a plurality of banks, including BANK1 410 andBANK2 420. Each of banks 410 and 420 includes a corresponding set ofcircuitry 414 and 424, respectively, used to temporarily store data forread and write accesses for pages within the banks 410 and 420.Circuitry 414 for BANK1 410 includes a first cache 415, a second cache416, and update circuitry 417. The update circuitry 417, which mayinclude parity calculator 418 and/or majority detection circuit 419 isdiscussed in additional detail below.

As shown in FIG. 4, caches 415 and 416 are coupled to BANK1 410 to allowdata to be transferred between the BANK1 410 of the array 405 and caches415 and 416. In some embodiments, each of the caches 415 and 416includes static random access memory (SRAM) memory cells, whereas inother embodiments, the caches 415 and 416 are made up of registers,flip-flops, or other storage circuits that are used to store data.Caches 415 and 416 include enough storage to accommodate a page of datafrom BANK1 and may also include additional storage to store the addressof the page, parity or other error correction code (ECC) information forthe page, and any inversion or other information relevant to the page.In some example embodiments, the caches 415 and 416 are on the order of64 data words at 8 or 16 bits/word. In other example embodiments, thecaches store 128 or 256 words. In some embodiments, banks are combinedto maintain the number of data words stored when the word sizeincreases, for example, from 8 to 16 bits. The size of the caches andthat of the pages accessed can be adapted to suit the needs of theapplication.

As illustrated in FIG. 4, each bank in the array 405 has a correspondingset of caches and update circuitry. BANK2 420 is shown to be coupled tocaches 425 and 426 with update circuitry 427. Having separate cachestructures for each bank enables multiple pages in different banks to beopen simultaneously, thereby allowing for interleaved accesses. Whilethe embodiment depicted in FIG. 4 shows two caches for every bank, inother embodiments, more than two caches are included for each bank,thereby allowing the write-back for more than one page to be deferreduntil a later point in time. Such additional caches may be appropriatein embodiments where the time required for a write-back is much longerthan that needed for activate operations or where the access patternwould benefit from deferment of write-back for multiple pages. In yetother embodiments, each bank has one corresponding cache for storage ofthe open page for read/write operations, but shares a second cache withone or more other banks, where the second cache is used exclusively forstoring data corresponding to a closed page that has not yet beenwritten back. Note that sharing a write-back cache between banks couldlimit activate operations to those banks to ensure that conflicts do notoccur where both banks require the use of write-back cache at the sametime.

Control circuitry 450 is coupled to array 405 and circuitry 414 thatincludes the caches 415 and 416 as well as the update circuitry 417. Inthe embodiment shown in FIG. 4, control circuitry 450 is coupled to allof the banks in the array 405 and all of the cache structures and updatecircuitry for those banks. As such, control circuitry 450 providesglobal control over memory access operations in the embodiment of FIG.4. In other embodiments, dedicated control circuitry is provided foreach bank such that the operations for each bank are individuallycontrolled.

Control circuitry 450, which may include, for example, a state machine,processor, microcontroller, or logic circuitry is configured to controlthe movement of data, and operations performed on the data, for thevarious memory access operations supported by the memory device. Controlcircuitry 450 receives commands 434 and a reset signal 435. In otherembodiments, control circuitry 450 receives additional signals, eithersourced internal to the memory device or external from the memorydevice, that provide the control circuitry 450 with information orinstructions to facilitate the data storage and retrieval operations.For example, control circuitry 450 may receive a self-refresh signalthat indicates that no immediate accesses are impending and the memorydevice has an opportunity to perform other operations while such asignal is asserted. The commands 434 received by the control circuitry450 can include commands received from an external memory controller orother control device that issues commands to the memory device. Forexample, an external memory controller can provide commands 434 to thecontrol circuitry 450 where such commands include activate, read, write,precharge, read with autoprecharge, write with autoprecharge, andrefresh commands. In other embodiments, the commands directing theactions of the memory device may be processed in a hierarchical mannersuch that some shared circuitry performs some of the actions related toeach command, and the control circuitry 450 receives more localizedcommands 434 that are derived from higher-level commands received by thememory device.

In operation, the control circuitry 450 is configured to, in response toa first activate command received by the memory device, transfer firstpage data from a first location in the array to a first cache. In anexample corresponding to the FIG. 4, the first activate command causesthe control circuitry 450 to provide the appropriate signals to thearray 405 and cache 415 such that the data corresponding to FIRST PAGE411 in BANK1 410 is transferred into the cache 415. In some embodiments,loading the data for FIRST PAGE 411 into cache 415 includes performing aself-referenced read for the memory cells included in FIRST PAGE 411. Inother embodiments, referenced read operations (e.g. where the resistanceof each memory cell is compared with a reference to determine the datastored therein), or other techniques for ascertaining the data stored ineach memory cell are used to load the data for FIRST PAGE 411 into cache415.

Once the data for FIRST PAGE 411 is loaded into cache 415, FIRST PAGE411 is considered to be “open,” and read and write operations to FIRSTPAGE 411 can occur by reading the data in the cache 415 or overwritingdata in the cache 415. Each read or write command is accompanied byaddress information that allows specific words or sets of words in FIRSTPAGE 411 to be accessed. Once all of the read and write accesses toFIRST PAGE 411 are complete, the data for FIRST PAGE 411, which mayinclude new data added by write operations, is moved from the cache 415to the cache 416. In some embodiments, the indication that theread/write operations to FIRST PAGE 411 are complete is based on receiptof a precharge command by the memory device. In other embodiments, datais retained in the cache 415, which may be referred to as the primarycache, until a subsequent activate operation for BANK1 410 is receivedby the memory device. As discussed in additional detail below,additional commands or signals are used in some embodiments to cause thedata in cache 415 to be moved either into cache 416 or directly backinto BANK1 of array 405.

After transferring the first page data from the first cache 415 to thesecond cache 416, first cache 415 is available to receive datacorresponding to a new page. Thus, in response to a second activatecommand corresponding to SECOND PAGE 412 of BANK1 410, the controlcircuitry 450 issues the appropriate control signals such that secondpage data corresponding to SECOND PAGE 412 is transferred from thelocation corresponding to SECOND PAGE 412 in BANK1 410 of the array 405into the cache 415. SECOND PAGE 412 is thereby “opened” and availablefor read and write operations. Once the activate operation for SECONDPAGE 412 is complete, or has progressed far enough so as to notinterfere with a write-back operation to BANK1, the first page datacorresponding to FIRST PAGE 411 that is stored in cache 416 can bewritten back to the appropriate location in BANK1 of the array 405. Asnoted above, the address for FIRST PAGE 411 can be included with thedata stored in the cache 416 so the location to which the first pagedata is to be written in the array 405 is known. In other embodiments, aseparate register or storage location can be used to store the addressinformation for each page along with any other appropriate page-specificinformation such as parity information or inversion status.

Parity information or other forms of ECC are used in some embodiments toprevent or reduce data errors. Parity calculation is well known in theart, and storing a set of parity bits for a page in the bank with thepage data allows for parity checking to confirm data validity and mayallow for correction of data errors in some instances. In the exampledescribed above with respect to FIG. 4, when the first page datacorresponding to FIRST PAGE 411 is written back into the array 405, thatdata may include parity information. Because the data included in FIRSTPAGE 411 may be modified by write operations that are performed whilethe FIRST PAGE 411 is open, new parity calculations need to be performedbefore the data is written back to the array 405. In some embodiments,the parity calculations are performed as each write operation to thepage are completed such that the parity information stored with the datain cache 415 is always current. In such embodiments, the accurate parityinformation can be shifted with the data from cache 415 to cache 416prior to writing back at a later time. However, performing such paritycalculations in real-time can be costly in terms of time and resources(e.g. extra power consumption would be required). As such, because it isknown that no further write operations to FIRST PAGE 411 will occur whenthe data for FIRST PAGE 411 is moved to the cache 416, the paritycalculations for FIRST PAGE 411 can be performed in conjunction with themoving of the data from cache 415 to cache 416. In FIG. 4, paritycalculator 418 is included in update circuitry 417, where the parityinformation is updated when the data is transferred from cache 415 tocache 416.

Because destructive self-referenced read operations that write all ofthe memory cells in a selected page to a first state leave all the cellsin the same state at the conclusion of an activate operation,determining whether the majority of the bits in the page are in thefirst state (e.g. binary “0”) or in the second state (e.g. binary “1”)before the page is written back can help reduce power consumption. Forexample, if the activate operation leaves all the memory cells in thepage in the first state corresponding to a binary “0,” and, when thedata is ready to be written back, the majority of the bits in the pageto be written back are a “0,” then less than half of the memory cellswill require the one or more write pulses that are used to change thefree layer in those cells to the state corresponding to a binary “1.”If, however, the majority of the bits in the page are “1's,” then morethan half of the memory cells will have to be written to in order tochange their state. In such an instance, it is valuable to invert all ofthe bits for the page such that the state that formerly represented a“0” now represents a “1.” By inverting all of the bits when the majoritydoes not correspond to the state the memory cells are left in when theactivate is complete, the write back will always involve writing to nomore than half of the memory cells in the page.

In order to support such inversion after a majority detection, aninversion status bit is maintained for each page to indicate if the datastored in the array 405 for that page is inverted or not. In addition, amajority detection needs to occur for each page prior to write-back ofthe page if data in the page was modified while the page was open. Assuch, majority detector 419 is included in the update circuitry 417. Aswas the case for the parity calculation, majority detection can beperformed in real time with each write operation, but it is likely moreefficient to perform the majority detection and setting of the inversionbit once the page is in the process of closing. Thus, in someembodiments, majority detection is performed when the data for a page istransferred from the first cache 415 to the second cache 416.

In order to facilitate all of the internal operations associated withmoving the data between the various locations and performing the stepsassociated with parity calculation, majority detection, etc., thecontrol circuitry 450 generates a plurality of timing signals thatdirect the circuitry on the memory device so that the proper operationsare performed in the proper order and at the proper time. In someembodiments, those timing signals are generated by delay circuit 455,which is shown to be included in control circuitry 450. In someembodiments, the delay circuit includes a plurality of delay blocks orcircuits that are used to generate the timing signals associated withthe various functions that occur in accessing data in the memory array405. For example, in response to an activate operation for BANK1 in thesituation where a previous page in BANK 1 has not yet been written back,a plurality of timing signals are generated such that the data fromcache 415 is moved to cache 416, any parity calculation and majoritydetection is performed, the page to be opened is loaded into the cache415, and, once the activate is complete, the data in cache 416 iswritten back to the array 405. Thus a single transition of a signalindicating an activate may trigger multiple signal transitionsappropriately spaced in time by the delay circuit 455 so that theappropriate operations occur at the appropriate time. The spacingbetween various timing signals may be programmable such that therelative time at which different operations are performed can beadjusted by, for example, storing values in a programmable register.

Note that in some instances, sequential activates can be received thatcorrespond to the same page in the same bank. For example, FIRST PAGE411 may be opened, a number of read/write operations to the data inFIRST PAGE 411 performed, and then a precharge command receivedindicating that FIRST PAGE 411 should be closed. In some embodiments,receipt of the precharge command does not result in the data beingwritten back to the array as the control circuitry 450 is waiting forthe next activate command to do so. As such, if a new activate operationis received corresponding to FIRST PAGE 411 directing the memory tore-open it, transferring data from the array 405 to cache 415 will notresult in the data for FIRST PAGE 411 being placed in cache 415 as thedata for FIRST PAGE 411 is not yet back in BANK1 410 of the array 405.In some embodiments, the data for FIRST PAGE 411 is still in the cache415 when the re-activation command for FIRST PAGE 411 is received. Assuch, in some embodiments, control circuitry 450 includes a page addresscomparator that is configured to compare the address accompanying anactivate command with the address of the last page opened. If thecomparison indicates that the new page to be opened is the same as theprevious page, the control circuitry 450 will do nothing if the data forthe previously opened page is still in the primary cache 415. If the newpage to be opened is the same as the previous page and the data for thatpage has already been transferred to cache 416, the data can be eitherbe transferred directly back to cache 415 or written back to the array405 before the data is retrieved once again from the array and loadedinto cache 415.

Another potential issue with the delayed write-back of the previous pageoccurs when the previous page of data is not written back in response toa precharge command, but instead is waiting for another activate commandthat never comes. For example, the final data accesses to a bank beforepower is turned off may result in the data for the accessed pageresiding in the cache 415 or 416 awaiting the next activate. Withoutsuch an activate, the write-back to the array 405 would not normally beinitiated. As such, power-down may occur with the data not yet writtenback to the array 405. If the cache structures are volatile storage, thedata can be lost.

In some embodiments, this issue is addressed by using non-volatilestorage for one or both of the caches for each bank. In otherembodiments, the memory device can periodically perform a write-back tothe array at a time when no new activate command will be received. Insome embodiments, a refresh command or refresh signal received by thememory device indicates that the memory controller will not be issuingan activate any time soon, and the memory has the chance to perform a“refresh” operation. Such refresh operations are used in DRAMs toreplenish charge on capacitors in one or more of the rows in the arrayof memory cells. In order to perform the refresh, all banks in the DRAMare typically closed. As such, even though MRAM does not need to performrefresh operations, it can take the refresh command or signal as anindication that all banks should be closed and the data corresponding topages currently held in the caches should be written back to the array.In other embodiments, the refresh command/signal can be used to initiatea write-back to one of many banks, where the memory device keeps trackof which banks have been written-back, thereby knowing in which bank thenext refresh will trigger a write-back.

In other embodiments, the reset signal 435 can be used as a trigger toinitiate write-backs to the array. By specifying to users that the resetsignal needs to be asserted in order to ensure the data in the memory isnon-volatile, users can assert the reset signal before events such as apower down, thereby causing the data for the last opened page to betransferred from, for example, cache 415 to cache 416 (with possibleparity and inversion calculations), and then written back into memoryarray 405.

In yet other embodiments, a new operation code can be employed tospecifically cause a write-back to occur without the need for anotheractivation. For example, a “STORE” operation code could be sent by thememory controller to the memory, where the STORE operation code causesthe MRAM to write-back any rows that are awaiting write-back. Such aSTORE operation code can either be bank-specific in that it only directsthe data corresponding to one bank to be written back to the array(STORE-BANKx, where x=the bank number), it can cause the data for asubset of banks to be written back, or it can cause the data for allbanks to be written back (STORE-ALL). Such a new operation code(s) canbe used to clean up any volatile data on the memory device, forcing itto be stored in the non-volatile storage of the array 405 such that itis not susceptible to loss if power is removed.

When write-back operations to a large page (many bits per page) ormultiple banks occurs, it may be desirable to stagger the write-backoperations to subsets of the memory cells in order to reduce power andcurrent spikes associated with the write-back operations. In suchstaggering, portions of the memory cells are written back to atdifferent times such that the current draw and power consumptionassociated with the write back is distributed in time. Thus, a firstportion of the data to be written back is written at a different timethan a second portion of the data. For example, in a write-back to alarge page, half of the bits in the page may be written back first, andthen the other half of the bits written back later. In another examplecorresponding to a STORE-ALL command or operation code, the data forhalf of the banks is written back first and then the data for the otherhalf of the banks is written back. In another STORE-ALL example, half ofthe bits in each of the banks is written back first, and then the otherhalf of the bits in each bank are written back. In yet another STORE-ALLexample, write-back operations are serialized such that a bank or agroup of banks is waiting for the completion of write-back operation(s)in another bank or a groups of banks. Such staggering of write-backoperations can be split into many phases, can be set to be programmed,and can be bank-specific, memory cell-specific, or both.

If the delay circuit 455 is used to generate the timing signals used toperform the write-back operations and such signals are delay-basedsignals generated in response to a trigger signal, the write-backoperations can be accomplished without the need for a clock signal. Thisallows a system to issue an indication that write-back should occur(e.g. a refresh, self-refresh, reset, or STORE command) and then turnoff the clock without concern for the data not being written back. Whenwrite-backs are staggered, the delay circuit can use feedback ordaisy-chain multiple delay circuits to ensure that some write-backoperations occur before others.

After all of the pages in a bank have been written-back to the array405, the next activate operation should not result in a write back ofdata stored in cache 415. As such, a flag can be used for each bank toindicate whether the bank has a page that is open and/or awaitingwrite-back. Thus, when the device is first turned on, the flag iscleared, indicating that no pages are open and awaiting write-back. Whenthe first page is opened, the flag is set such that a subsequentactivate will trigger a write-back of the first page data. If a STORE orother write-back indication is received, the data is written back andthe flag is cleared. In some embodiments, status registers alreadypresent in standard-compliant memory devices can be used to store suchflags.

In some embodiments, the flags associated with whether or not a bank isopen or has data waiting to be written back can be manipulated tosupport testing, burn-in, or other operations that are designed toexercise the memory device in a manner that differs from normaloperation. For example, some testing operations want to continuouslyaccess the same page within a bank without concern for the actual datastored therein. By keeping the open indication for that bank clear andnot performing the comparison of the address for the page to beactivated with the last page activated, the memory device can beexercised as desired rather than having it do nothing in response to anattempt to open a page that is already opened.

While the discussion above with respect to FIG. 4 describes transferringnewly-activated pages to a primary cache 415 and the moving that data tosecondary, write-back cache 416 prior to write back, in otherembodiments, rather than moving the data between the caches, the rolesof the caches can be changed. For example, a first activate can load afirst page of data in to a first cache, while the second activate loadsa second page of data into a second cache before writing the first pageof data back into the array from the first cache. Reads and writes tothe first page would occur using the first cache, and reads and write tothe second page would use the second cache.

FIGS. 5-7 are flow charts that illustrate exemplary embodiments oraspects of embodiments of methods for supporting a delayed write-back inmemory devices. In one example, the memory devices include an array ofspin-torque magnetic tunnel junction memory cells. The operationsincluded in the flow charts may represent only a portion of the overallprocess used to operating the device. For illustrative purposes, thefollowing description of the methods in FIG. 5-7 may refer to elementsmentioned above in connection with FIG. 4. It should be appreciated thatmethod may include any number of additional or alternative tasks, thetasks shown in FIGS. 5-7 need not be performed in the illustrated order,and the methods may be incorporated into a more comprehensive procedureor process having additional functionality not described in detailherein. Moreover, one or more of the tasks shown in FIGS. 5-7 could beomitted from an embodiment as long as the intended overall functionalityremains intact.

Turning to FIG. 5, at 510 a first activate command for a first page in afirst bank of the memory device is received. At 520, in response to thefirst activate command, a first page of data is retrieved from the arrayand stored in a first cache on the memory device. Once the first pagehas been activated in this manner, read and write operations to the datain the first page can occur by accessing the first cache.

At 530, a second activate command for a second page in the first bank isreceived. As discussed above with respect to FIG. 4, in order to movethe data for the second activate command from the first bank of thearray into the first cache for access, the data corresponding to thefirst page is moved to a second cache before eventually being writtenback into the array. However, by delaying the write-back of the datacorresponding to the first page until after the activation for thesecond page is complete, the time associated with writing back the firstpage data can be hidden and will not delay any read or write operationsdirected at the second page.

At 540, in response to the second activate command, the memory startsretrieving the second page data from the array. At 550, the first pagedata is transferred from the first cache to the second cache. Notably,the transfer of the first page data can occur at the same time as theretrieval of the second page data is initiated as long as the first pagedata is out of the first cache before the second page data is storedthere. While the flow diagram of FIG. 5 indicates that the second pagedata retrieval begins before the transfer of the first page data, theordering of these steps is not critical as long as there is no conflict.In some embodiments, the transfer at 550 begins in response to thesecond activate command, whereas in other embodiments, the transfer istriggered by a precharge command corresponding to the first pagereceived prior to the second activate command. Thus, a precharge commandmay trigger the movement of the first page data from the first cache tothe second cache, but the data may remain in the second cache until asubsequent activate command causes it to be written back.

Notably, in some embodiments, the precharge command is not used totrigger movement of the data from the first cache to the second cache.In such embodiments, the precharge command may serve no function suchthat the memory device does nothing in response to a precharge command.By eliminating the need for precharge commands, the timing associatedwith the provision of such precharge commands in standard protocols suchas those used for DDR memory devices can be relaxed in ways that allowmore flexibility to memory system designers.

Transferring the first page data from the first cache to the secondcache at 550 can include performing parity calculation at 551 such thatthe appropriate parity, or other ECC information, is available at thetime the first page data is to be written back into the array.Similarly, majority detection and inversion at 552 can be included aspart of the data transfer from the first cache to the second cache.Performing parity calculation and majority detection at this point intime makes sense as any writes to the first page complete, and thus thedata being transferred is final with respect to parity and inversiondeterminations related to storage of the data in the array. While paritycalculation and majority determination can be done while the data isbeing transferred between caches, in other embodiments, such operationsmay be performed at other points in time before or after such transferoccurs.

At 560 the second page data is stored in the first cache, therebymarking the completion of the second activate operation. Because thesecond activate operation is complete, the write back of the first pagedata from the second cache into the array at 570 can occur withoutinterfering with the second activate operation. Note that while in someembodiments, the write-back of the first page data does not occur untilthe second page data is loaded into the first cache, in otherembodiments, the write-back may begin earlier in time at a point wherethe write-back does not interfere with the ongoing second activateoperation. In some embodiments the write-back includes inversion of thebits in the page and setting of an inversion flag to indicate whether ornot the page of data is inverted.

FIG. 6 is a flow chart in which a scenario in which the same page withina bank is activated twice sequentially. At 610 a first activate commandfor a first page in a first bank is received. At 620, in response to thefirst activate command, first page data is retrieved from the array andstored in a first cache. As discussed above, the opening of the firstpage may include setting a flag for the first bank to indicate that apage within that bank is open. Once the first page has been opened, readand write accesses to data in the first page are performed using thefirst cache. Once those read and write accesses are complete, aprecharge command may be received corresponding to the first page, butbecause delayed write-back operations are being performed in the memorydevice, the precharge command may not result in the data being shiftedfrom the first cache into a second cache, or written back into thememory array.

At 630, a second activate command for a second page in the first bank isreceived. Because there is already an open page for the first bank, at640 the address for the first page is compared with the address for thesecond page. At 650, if it is determined that the address for the firstpage matches the address for the second page, the method proceeds to 660where the first page data is left remaining in the first cache. Inaddition to leaving the first page data in the first cache, anywrite-back that would normally occur as a result of the second activatecommand can also be blocked. Blocking a write-back of the first pagedata back into the array ensures that if the portion of the arraycorresponding to the first page data has been left in an intermediatestate after the activate command, that intermediate state is preservedsuch that the eventual write-back of the first page data is notcompromised. For example, if the first page data is read from the arrayusing a self-referenced read that leaves all of the memory cells in thepage in the array in a “0” or reset state, the write back only requiresthose memory cells that store a “1” or set state to be written. If thewrite-back of the first page data were allowed to occur in response tothe second activate command even though the data is retained in thefirst cache, a later write back could require both Os and is to bewritten back, thereby complicating the later write-back operation.

Thus, while in conventional memory devices, the closing of the firstpage by a precharge command would have resulted in the data for thefirst page being stored back in the memory array, embodiments of thedelayed write-back described herein result in the first page dataremaining in the first cache structure until a subsequent activateoperation is initiated. If the second activate operation is to the samepage that has already been opened, there is no need to fetch new data tobe stored in the first cache. In fact, an attempt to fetch new data fromthe array would result in garbage data being loaded into the first cacheif a self-referenced read is used during the activate operations. Assuch, if back-to-back accesses to the same page within the same bankoccur, the memory device does not have to do any data transfer in orderto prepare the first cache for read and write accesses to the first pageof data as that data still remains in the cache.

If it is determined at 650 that the same page is not being activated bythe second activate command, the method proceeds to perform theoperations necessary to facilitate the second activate command. At 670,the first page data is transferred from the first cache to a secondcache, which as discussed above, can include parity calculation andmajority determination. Also at 670, the second page data is retrievedfrom the array and stored in the first cache, thereby making the secondpage data available for read and write accesses using the first cache.Finally, once the activate operation corresponding to the second pagehas completed, or reached a stage of completion at which the write-backof the first page data would not interfere with the activate, thewrite-back of the first page data to the array occurs.

The flow chart of FIG. 7 helps to illustrate the scenario in which awrite-back indication is received by the memory device, where thewrite-back indication informs the memory device that any open pages, orclosed pages awaiting a write-back, should be cleaned up such that thedata corresponding to those pages is returned to non-volatile memory.Such an indication can be provided periodically to the memory deviceafter stopping activity in order to ensure that data in the memorydevice is stored in non-volatile storage.

At 710 an indication for a write-back is received. As discussed abovewith respect to FIG. 4, the indication for a write-back can includereceipt of a reset signal at 712, receipt of a store command at 714, orreceipt of a refresh signal or command, including entry into aself-refresh mode, at 716. In some embodiments, a write-back indicationis automatically provided any time the memory device enters a power-downmode. As also discussed above with respect to FIG. 4, a store commandsuch as that received at 714, can indicate that one or more banks shouldbe acted upon. For example, if the memory device is about to bepowered-down, a store command can be received that indicates that allbanks should be cleaned up so that any memory data currently stored involatile storage is written back into the non-volatile array.

After receipt of the indication for a write-back at 710, it isdetermined at 720 whether or not the particular bank to which theindication for a write-back pertains has an open page. If not, nowrite-back is needed as there is no data corresponding to the bank thatis currently in volatile storage. If it is determined at 720 that thebank has an open page, at 730 data stored in the first cache istransferred to the non-volatile array. The transfer at 730 can includeeither a direct transfer from the first cache to the array, or if thecircuitry within the memory device is set up is the data is routedthrough the second cache on its way to the array, the transfer at 730includes moving the data from the first cache to the second cache priorto write back from the second cache. The transfer between caches or fromone of the caches to the array can include parity calculation andmajority determination as discussed above.

When the write back that occurs at 730 involves a large number of memorycells being written to, the write-back can be split into multiplephases. For example, at 732 a first portion of the data is transferredto the array, and then at 734 a second portion of the data istransferred to the array. In a more specific example, a STORE-ALLcommand may be triggered prior to device shutdown. Such a STORE-ALLcommand may result in data corresponding to multiple banks being writtenback into the array. In order to avoid high peak power consumption andlarge current spikes associated with writing to many memory cellssimultaneously, the write-back operations corresponding to a first halfof the banks may be performed at 732, whereas the write operationscorresponding to a second half of the banks is performed at 734. Inother embodiments, a portion of the memory cells in each bank arewritten during each of steps 732 and 734 such that the write-backoperations within each bank are staggered in time.

FIG. 8 illustrates a circuit diagram associated with a portion of thememory device that includes the use of delayed write-back operations.The timing diagram below the schematic helps to illustrate thefunctionality of the circuitry. Upon startup, the OPEN signal 992 islow, thereby indicating that no pages in the bank have been opened andthus are awaiting write-back with the next activate. When the/ACTIVATEsignal 990 is asserted low for the first time at edge 961, the ACTIVATETIMING signals 993 are shown to transition from high to low at 966,which represents the generation of the numerous timing signals used inan activate operation. In the embodiment of FIG. 8, these signals aresignal transitions directly resulting from the high-to-low transition ofthe/ACTIVATE signal 990 and are generated by activate timing circuitsblock 951.

When the/ACTIVATE signal 990 returns high at edge 972 in the timingdiagram, the OPEN signal 992, which is the output of flip-flop 955, goeshigh. The OPEN signal 992 is used to determine that a page has beenopened and a write-back for that page should be triggered upon receiptof a subsequent activate assertion. The ACTIVATE TIMING signals 993,UPDATE TIMING signals 994, and WRITEBACK TIMING signals 995 all go fromlow to high when the/ACTIVATE signal 990 is deasserted high at 973 withthe OPEN signal 992 high. This occurs based on logic gates 952, 953,956, 957, and 959 and prepares those sets of timing signals forsubsequent assertion when the next activate signal assertion occurs. Thesignals are prepared for assertion as it is known that the next activatewill result in an activate of the new page, an update of theparity/majority of the previous page, and a write-back of the previouspage.

When next assertion of /ACTIVATE 990 occurs at edge 962, that assertiontriggers the assertion of each of the ACTIVATE TIMING signals 993,UPDATE TIMING signals 994, and WRITEBACK TIMING signals 995. Thus, thetiming signals to activate the new page are generated by activate timingcircuits block 951 (edges 967), the timing signals to update the parityand majority information regarding the previously opened page aregenerated by update timing circuits block 958 (edges 968), and, afterthe update and the activate are complete, the signals used to write-backthe previously opened page (WRITEBACK TIMING signals 995) are generatedby the writeback timing circuits block 954 (edges 970). Upon deassertionof /ACTIVATE 990 at edge 973, each of the timing signal groups ofsignals is deasserted in preparation for the next activate. The OPENsignal 992 remains high.

When the RESET signal 991 is pulled high at edge 963, this indicatesthat any data stored in volatile memory should be written back into thearray. In other embodiments, the receipt of a refresh command or STOREcommand can also trigger such a write-back. The assertion of RESETresets flip-flop 955, causing the OPEN signal 992 to go low at edge 965.The transition of the OPEN signal 992 propagates through the circuit,causing the UPDATE TIMING signals 994 to be asserted (edges 969) as wellas the WRITEBACK TIMING signals 995 to be asserted (edges 971). As aresult, the timing signals that cause the previously opened page toupdated (parity calculation and majority determination) and written backinto the memory array.

By delaying the write-back of an open page of data for a bank until asubsequent activate operation is completed, the delay associated withwriting the data back to the array can be hidden, thereby improving theaccess timing associated with the device. Including a new operation codeto support data write-back without the need for another activateoperation helps to ensure that data is not left in non-volatile storagewhen power-down occurs. In some instances multiple pages of data may bewritten back into the array based on a single write-back indication, andthe data write-back can be staggered to reduce peak power consumption.

While exemplary embodiments have been presented above, it should beappreciated that many variations exist. Furthermore, while thedescription uses spin-torque MRAM devices that include memory cells in aspecific example arrangements, the teachings may be applied to othermemory devices having different architectures in which the same conceptscan be applied. Examples of such memory devices include other resistivememories and DRAMs. Such memories would benefit in terms of improvedrandom access time, reduced power consumption, and increased dataretention time.

The particular embodiments disclosed above are illustrative only andshould not be taken as limitations, as the embodiments may be modifiedand practiced in different but equivalent manners apparent to thoseskilled in the art having the benefit of the teachings herein.Accordingly, the foregoing description is not intended to limit thedisclosure to the particular form set forth, but on the contrary, isintended to cover such alternatives, modifications and equivalents asmay be included within the spirit and scope of the inventions as definedby the appended claims so that those skilled in the art shouldunderstand that they can make various changes, substitutions andalterations without departing from the spirit and scope of theinventions in their broadest form.

1-20. (canceled)
 21. A method of operation of a memory, wherein thememory includes an array of memory cells, the method comprising:receiving a first activate command and a first address corresponding toa first page within the memory; in response to the first activatecommand: retrieving first page data corresponding to the first page fromthe array of memory cells based on the first address; and storing thefirst page data in a first cache; performing at least one read or writeoperation corresponding to the first page data stored in the firstcache, wherein the at least one read or write operation accessesspecific words or sets of words in the first page data; after performingthe at least one read or write operation, receiving a second activatecommand and a second address corresponding to a second page within thememory; in response to the second activate command: comparing the firstaddress corresponding to the first page within the memory with thesecond address corresponding to the second page within the memory:wherein, if the first address corresponding to the first page is thesame as the second address corresponding to the second page, thenmaintaining the first page data in the first cache; wherein, if thefirst address corresponding to the first page is not the same as thesecond address corresponding to the second page, then: transferring thefirst page data from the first cache to a second cache; retrievingsecond page data corresponding to the second page from the array ofmemory cells based on the second address; and storing the second pagedata in the first cache; and writing the first page data from the secondcache into the array of memory cells at a location corresponding to thefirst address.
 22. The method of claim 21, further comprising receivinga precharge command prior to the second activate command, wherein thefirst page data is transferred from the first cache to the second cachein response to the precharge command.
 23. The method of claim 21,wherein the first page data is transferred from the first cache to thesecond cache in response to the second activate command.
 24. The methodof claim 21, wherein transferring the first page data from the firstcache to the second cache further comprises calculating parity for thefirst page data.
 25. The method of claim 21, wherein transferring thefirst page data from the first cache to the second cache furthercomprises performing a majority detection with respect to the first pagedata, wherein the majority detection determines if a majority of bits inthe first page data are in a first state or a second state, whereinwriting the first page data from the second cache into the arrayincludes inverting the bits in the first page data when the majority ofbits in the first page are in the second state.
 26. The method of claim21, wherein transferring the first page data from the first cache to thesecond cache further comprises at least one of: calculating parity forthe first page data; and performing a majority detection with respect tothe first page data, wherein the majority detection determines if amajority of bits in the first page data are in a first state or a secondstate, wherein writing the first page data from the second cache intothe array includes inverting the bits in the first page data when themajority of bits in the first page are in the second state.
 27. Themethod of claim 21, further comprising: after receiving the secondactivate command, receiving a third activate command and a third addresscorresponding to a third page within the memory; comparing the secondaddress with the third address; and when the third address matches thesecond address, maintaining the second page data in the first cache. 28.A memory, comprising: an array of memory cells; a first cache coupled tothe array; a second cache coupled to the array; and control circuitrycoupled to the array, the first cache, and the second cache, wherein thecontrol circuitry is configured to: in response to a first activatecommand, transfer first page data from a first location in the array tothe first cache; in response to a read or write command and addressinformation, perform a corresponding read or write access to a specificdata word of the first page data in the first cache, wherein thespecific data word is selected by the address information; afterperforming the read or write command, receive a second activate commandand a second address corresponding to a second page within the memory;in response to the second activate command: compare the first addresscorresponding to the first page within the memory with the secondaddress corresponding to the second page within the memory: wherein, ifthe first address corresponding to the first page is the same as thesecond address corresponding to the second page, then maintain the firstpage data in the first cache; wherein, if the first addresscorresponding to the first page is not the same as the second addresscorresponding to the second page, then: transfer the first page datafrom the first cache to a second cache; retrieve second page datacorresponding to the second page from the array of memory cells based onthe second address; and store the second page data in the first cache;and write the first page data from the second cache into the array ofmemory cells at a location corresponding to the first address.
 29. Thememory of claim 28, wherein the control circuitry is further configuredto: receive a precharge command prior to the second activate command,wherein the first page data is transferred from the first cache to thesecond cache in response to the precharge command.
 30. The memory ofclaim 28, wherein the first page data is transferred from the firstcache to the second cache in response to the second activate command.31. The memory of claim 28, wherein transferring the first page datafrom the first cache to the second cache further comprises calculatingparity for the first page data.
 32. The memory of claim 28, whereintransferring the first page data from the first cache to the secondcache further comprises performing a majority detection with respect tothe first page data, wherein the majority detection determines if amajority of bits in the first page data are in a first state or a secondstate, wherein writing the first page data from the second cache intothe array includes inverting the bits in the first page data when themajority of bits in the first page are in the second state.
 33. Thememory of claim 28, further comprising: a parity calculator coupled toat least one of the first cache and the second cache, wherein the paritycalculator is configured to calculate parity for each page of data; anda majority detection circuit coupled to at least one of the first cacheand the second cache, wherein the majority detection circuit isconfigured to determine if a majority of bits in each page of data arein a first state or a second state.
 34. The memory of claim 28, whereinthe control circuitry includes a delay circuit, wherein the delaycircuit generates a plurality of timing signals used in transferringdata amongst the array of memory cells, the first cache, and the secondcache.
 35. A method of operation of a magnetoresistive random accessmemory, wherein the magnetoresistive random access memory includes anarray of non-volatile magnetoresistive memory cells, the methodcomprising: receiving a first activate command and a first addresscorresponding to a first page within the memory; in response to thefirst activate command: retrieving first page data corresponding to thefirst page from the array of magnetoresistive memory cells based on thefirst address; storing the first page data in a first cache; receivingat least one read or write command; and in response to receiving the atleast one read or write command, performing at least one read or writeoperation corresponding to the first page data stored in the firstcache, wherein the at least one read or write operation accessesspecific words or sets of words in the first page data; after performingthe at least one read or write operation, receiving a second activatecommand and a second address corresponding to a second page within thememory; in response to the second activate command: comparing the firstaddress corresponding to the first page within the memory with thesecond address corresponding to the second page within the memory:wherein, if the first address corresponding to the first page is thesame as the second address corresponding to the second page, thenmaintaining the first page data in the first cache; wherein, if thefirst address corresponding to the first page is not the same as thesecond address corresponding to the second page, then: transferring thefirst page data from the first cache to a second cache; retrievingsecond page data corresponding to the second page from the array ofmemory cells based on the second address; and storing the second pagedata in the first cache; and writing the first page data from the secondcache into the array of memory cells at a location corresponding to thefirst address
 36. The method of claim 35, wherein the first page data istransferred from the first cache to the second cache in response to thesecond activate command.
 37. The method of claim 35, whereintransferring the first page data from the first cache to the secondcache further comprises calculating parity for the first page data. 38.The method of claim 35, wherein transferring the first page data fromthe first cache to the second cache further comprises performing amajority detection with respect to the first page data, wherein themajority detection determines if a majority of bits in the first pagedata are in a first state or a second state, wherein writing the firstpage data from the second cache into the array includes inverting thebits in the first page data when the majority of bits in the first pageare in the second state.
 39. The method of claim 35, whereintransferring the first page data from the first cache to the secondcache further comprises at least one of: calculating parity for thefirst page data; and performing a majority detection with respect to thefirst page data, wherein the majority detection determines if a majorityof bits in the first page data are in a first state or a second state,wherein writing the first page data from the second cache into the arrayincludes inverting the bits in the first page data when the majority ofbits in the first page are in the second state.
 40. The method of claim35, further comprises: after receiving the second activate command,receiving a third activate command and a third address corresponding toa third page within the memory; comparing the second address with thethird address; and when the third address matches the second address,maintaining the second page data in the first cache.